<template>
  <div>
    <Return style="background: #eeeeee" txt="通讯录朋友"></Return>
    <div class="input">
      <van-icon v-if="search == ''" class="input_icon" name="search" />
      <!-- @focus="inputTap" -->
      <input
        type="text"
        class="inputAl"
        v-model="search"
        placeholder="系统号/手机号"
      />
    </div>
    <div class="list">
      <div class="list_left">
        <img src="../../../assets/images/scanIcon.png" alt="" />
      </div>
      <div class="list_addle">小张</div>
      <div class="list_right">
        <van-button type="primary" size="normal" @click="addtap">添加</van-button>
      </div>
    </div>
    <div class="list">
      <div class="list_left">
        <img src="../../../assets/images/scanIcon.png" alt="" />
      </div>
      <div class="list_addle">小张</div>
      <div class="list_right">
        <span class="right_span">已添加</span>
      </div>
    </div>
  </div>
</template>
<script>
import Return from "../../../components/return";
export default {
  components: {
    Return,
  },
  data() {
    return {
      search: "",
    };
  },
  methods:{
      addtap(){
              this.$router.push('addlinkmen');
      }
  }
};
</script>
<style scoped>
.input {
  height: 50px;
  width: 100%;
  text-align: center;
  line-height: 50px;
  position: relative;
  background: #eeeeee;
}
.input_icon {
  position: absolute;
  left: 33%;
  top: 15px;
  font-size: 18px;
}
.inputAl::-webkit-input-placeholder {
  padding-left: 5%;
}
.inputAl {
  height: 35px;
  width: 96%;
  border: none;
  text-align: center;
}
.list {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
}
.list_left {
  width: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.list_left img {
  width: 60%;
  border-radius: 50%;
}
.list_addle {
  height: 40px;
  width: 68%;
  line-height: 40px;
  font-size: 20px;
  /* margin-left: 2%; */
}
.right_span{
    font-size: 16px;
    color: #B2B2B2;
}
.list_right{
    margin-right: 2%;
}
</style>